/**
 * Created by HFY on 2017/5/11.
 */
//顶部tab栏切换
var navHeadLi = $(".nav_head_ul li");
for (var i = 0; i < navHeadLi.length; i++) {
    navHeadLi[i].indexs = i;
    navHeadLi[i].onclick = function () {
        for (var j = 0; j < navHeadLi.length; j++) {
            navHeadLi[j].className = "";
        }
        this.className = "navbar_nav_bgc";
        if (this.indexs == 0) {
            $(".enterprise").show();
            $(".operation_history").hide();
        } else if (this.indexs == 2) {
            $(".operation_history").fadeIn("slow");
            $(".enterprise").hide();
        } else if (this.indexs == 1) {
            $(".operation_history").hide();
            $(".enterprise").hide();
        }
    }
}